#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include <QTimer>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
//    explicit MyCoin(QWidget *parent = nullptr);
    //参数代表传入的金币路径: 金币/银币
    MyCoin(QString btnImg);
    //金币的属性
    int posX;//X坐标
    int posY;//Y坐标
    bool flag;//正反面标志

    void changeFlag();
    QTimer * timer1;
    QTimer * timer2;

    int min = 1;
    int max = 8;

    //执行动画标志
    bool isAnimation = false;

    //重写鼠标按下事件
    void mousePressEvent(QMouseEvent *e);

    bool isWin = false;

signals:

};

#endif // MYCOIN_H
